<?php /* Smarty version Smarty-3.0.8, created on 2014-11-03 19:12:43
         compiled from "tpl/js/controller/team-time-nav.js" */ ?>
<?php /*%%SmartyHeaderCode:227145457632b7ec667-84206622%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bb61358abfc9a4519c41053b645972e6d29024e5' => 
    array (
      0 => 'tpl/js/controller/team-time-nav.js',
      1 => 1410832481,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '227145457632b7ec667-84206622',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
      //团队管理
      App.controller('team-time-nav', function (page,contact) {
        var tpl_str = "\
        <li class='app-checkbox'><<?php ?>%=username%<?php ?>></li>\
        ";    
        var tpl_fun = parseTpl(tpl_str);    
        $(page).on("appReady",function(){
          $(page).find('#team_name').text(contact.team_name);
          $(page).find('.ptime-team-info').text("创始人："+contact.leader_name);
          var li_line1 = $("<li>").addClass("app-checkbox").html(contact.leader_name);
          $(page).find("#team_member").append(li_line1);

          $.post(url("team","team_member"),{team_id:contact.team_id},function(data){
            for(var i=0;i<data.length;i++){
              var li_line2 = tpl_fun(data[i]);
              //var li_line2 = $("<li>").addClass("app-checkbox").html(data[i].username);
              $(page).find("#team_member").append(li_line2);
            }
          },"json");          
        });
      });